package dominion.model.monies;

import dominion.model.Card;
import dominion.model.Player;
import dominion.utils.Constants;

public class Silver extends Coin {

	public Silver() {
		this.cost = 3;
		this.value = 2;
	}

	@Override
	public Card clone() {
		return new Silver();
	}

	@Override
	public String toString() {
		return "Silver";
	}

	@Override
	public String getDescription() {
		StringBuffer sb = new StringBuffer();
		sb.append(super.getDescription());
		sb.append("Worth 2 monies\n");
		return sb.toString();
	}

	@Override
	public void doAction(Player player) {
		player.changeMoney(2);
		Silver silver = (Silver) player.drawFromDeck("silver", Constants.HAND);
		player.addToDeck(silver, Constants.PLAY_SPACE);
	}
}
